const STAFF = resolve => {
    require.ensure(['@/Pages/staff/staff.vue'], () => {
        resolve(require('@/Pages/staff/staff.vue'))
    })
}
const qingkuangfanying = resolve => {
    require.ensure(['@/components/staff/qingkuangfanying.vue'], () => {
        resolve(require('@/components/staff/qingkuangfanying.vue'))
    })
}
const pending = resolve => {
    require.ensure(['@/components/staff/router-pending.vue'], () => {
        resolve(require('@/components/staff/router-pending.vue'))
    })
}
const pendingsuccess = resolve => {
    require.ensure(['@/components/staff/router-pendingsuccess.vue'], () => {
        resolve(require('@/components/staff/router-pendingsuccess.vue'))
    })
}
const staffxiangqing = resolve => {
    require.ensure(['@/Pages/staff/staffxiangqing.vue'], () => {
        resolve(require('@/Pages/staff/staffxiangqing.vue'))
    })
}
let routes = [
    {
        path: '/staff',
        name: 'staff',
        component: STAFF,
        redirect: '/qingkuangfanying',
        children: [
            {
                path: '/qingkuangfanying',
                name: 'qingkuangfanying',
                component: qingkuangfanying,
                redirect: '/pending',
                children: [
                    {
                        path: '/pending',
                        name: 'pending',
                        component: pending
                    },
                    {
                        path: '/pendingsuccess',
                        name: 'pendingsuccess',
                        component: pendingsuccess
                    }
                ]
            }
        ]
    },
    {
        path: '/staffxiangqing',
        name: 'staffxiangqing',
        component: staffxiangqing,
    }
]

export default routes
